import http from '@utils/request'
import { IUserData, IMenuData } from '@interface/user'

//获取个人信息
export const getUserInfo = (): Promise<IUserData> => {
  return http.get<IUserData>('/personal/getInfo')
}

//获取路由菜单信息
export const getMenuInfo = (data: string): Promise<IMenuData> => {
  return http.get<IMenuData>(`/personal/getRouters/${data}`)
}
